package com.ss.android.mine;

import android.content.Context;
import android.content.Intent;
import android.support.design.a;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import com.ss.android.account.e.MuteQuickClickListener;
import com.ss.android.article.base.feature.message.MessageTabActvity;
import com.ss.android.article.base.feature.user.account.view.AccountEditActivity;
import com.ss.android.article.browser.R;
import com.ss.android.common.app.IComponent;

final class aj extends MuteQuickClickListener {
    private final ae b;

    aj(ae arg1) {
        this.b = arg1;

    }

    public final void doOnClick(View view) {
        Intent v2;
        FragmentActivity v1;
        ae v0_1;
        int v0 = view.getId();
        if(v0 == R.id.usr_info_layout) {
            this.b.startActivity(new Intent(this.b.getActivity(), AccountEditActivity.class));
        }
        else if(v0 == R.id.a3i) {
            this.b.a("weixin");
        }
        else if(v0 == R.id.a3h) {
            this.b.a("mobile");
        }
        else if(v0 == R.id.iv_share_paltform_qzone) {
            this.b.a("qzone_sns");
        }
        else if(v0 == R.id.a2q) {
            v0_1 = this.b;
            v1 = v0_1.getActivity();
            if(v1 != null) {
                v0_1.b("enter_follow");
                v2 = new Intent();
                v2.setClassName(((Context)v1), "com.ss.android.article.base.feature.main.SubscriptionActivity");
                v0_1.startActivity(v2);
            }
        }
        else if(v0 == R.id.a2u) {
            v0_1 = this.b;
            v1 = v0_1.getActivity();
            if(v1 != null) {
                v0_1.b("favorite");
                v2 = new Intent();
                v2.setClassName(((Context)v1), "com.ss.android.article.base.feature.favorite.FavoriteActivity");
                v0_1.startActivity(v2);
            }
        }
        else if(v0 == R.id.a2y) {
            v0_1 = this.b;
            v1 = v0_1.getActivity();
            if(v1 != null) {
                v0_1.b("enter_notification");
                MessageTabActvity.a(((Context)v1), "notify");
            }
        }
        else if(v0 == R.id.a32) {
            v0_1 = this.b;
            v1 = v0_1.getActivity();
            if(v1 != null) {
                v0_1.b("enter_setting");
                String v0_2 = "news";
                if(v1 != null) {
                    v2 = new Intent();
                    v2.setClassName(((Context)v1), "com.ss.android.mine.BaseSettingActivity");
                    if(!a.isTextEmpty(v0_2)) {
                        v2.putExtra("tag", v0_2);
                    }

                    ((Context)v1).startActivity(v2);
                }
            }
        }
        else {
            if(v0 != R.id.a36) {
                return;
            }

            v0_1 = this.b;
            v0_1.b("enter_feedback");
            v1 = v0_1.getActivity();
            if(v1 == null) {
                return;
            }

            new com.ss.android.article.base.feature.d.a(((Context)v1), ((IComponent)v0_1)).startFeedbackActivity();
        }
    }
}

